<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%> 

<div class="container-fluid">
	<div class="col-sm-12">
		<div>
			<span  class="help-block">审批记录</span>
			<table class="table table-bordered row" style="font-size: 14px"> 
				<thead>
					<tr> 
						<th>节点</th>
						<th>开始时间</th> 
						<th>结束时间</th>
						<th>审批人</th>
						<th>意见</th>
						<th>附件</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="taskOpinion">
						<tr> 
							<td  class="col-sm-2">${taskOpinion.nodeName}</td> 
							<td class="col-sm-2  text-center"><fmt:formatDate value="${taskOpinion.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td  class="col-sm-2  text-center"><fmt:formatDate value="${taskOpinion.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td  class="col-sm-2">${taskOpinion.operateBy}</td> 
							<td  class="col-sm-2">${taskOpinion.opinionIdea}</td> 
							<td  class="col-sm-2">附件名称 </td> 
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<span class="help-block">流程信息</span>
			<form id="form" name="form" target="hidFrame" method="post" class="form-horizontal">
				<input type="hidden" id="taskId" name="taskId" value="${task.taskId}"/>
				<input type="hidden" id="defId" name="defId" value="${task.procDefId}"/>
				<input type="hidden" id="instanceId" name="instanceId" value="${task.instanceId}"/>
				<input type="hidden" id="workFlowInfo" name="workFlowInfo"/>
				<table style="border:1px solid 000;width:100%;" cellpadding="5" cellspacing="5" >
					<tr>
						<td class="text-right" style="background-color:#e8e8e8;width:20%;"><strong>附件:</strong></td>
						<td width="40%"> 
							<input type="text" class="form-control" disabled id="fileName">
						</td>
						<td>
							<a href="#" onclick="selectIcon()">添加</a>
							<input type="hidden" id="fileId" name="fileId" value=""/> 
						</td>
					</tr>
					<tr>
						<td class="text-right col-sm-2" style="background-color:#e8e8e8"><strong>当前节点:</strong></td>
						<td class="col-sm-2">${task.nodeDef.nodeName}</td>
					</tr>
					<tr>
						<td class="text-right col-sm-2" style="background-color:#e8e8e8"><strong>下一个节点:</strong></td>
						<td class="col-sm-2">
							<span style="color:red;">
								${outNodeList}
							</span> 
						</td>
					</tr> 
					<tr>
						<td class="text-right col-sm-2" style="background-color:#e8e8e8"><strong>操作:</strong></td>
						<td class="col-sm-2">
							<input type="radio" name="actionName" checked="checked" value="agree"/>同意
							<input type="radio" name="actionName" value="backToStart"/>驳回起草人
						</td>
					</tr>
					<tr>
						<td class="text-right col-sm-2" style="background-color:#e8e8e8"><strong>处理意见:</strong></td>
						<td class="col-sm-2 row">常用意见&nbsp;<ossp:select dictType="cyyj"></ossp:select> </td>
						<td></td>
					</tr>
					<tr>
						<td class="text-right col-sm-2" style="background-color:#e8e8e8"><strong></strong></td>
						<td colspan="2">
							<textarea id="opinionIdea" style="width:100%;height: 80px" class="form-control col-sm-8"></textarea>
						</td>
					</tr>
					<tr>
						<td></td> <td></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>